package com.ecoolex.chinadutyfree.retailer.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.lang.NonNull;

public class DirectMailGoodsProductExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer rows;

    public DirectMailGoodsProductExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public DirectMailGoodsProductExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public DirectMailGoodsProductExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        rows = null;
        offset = null;
    }

    public static Criteria newAndCreateCriteria() {
        DirectMailGoodsProductExample example = new DirectMailGoodsProductExample();
        return example.createCriteria();
    }

    public DirectMailGoodsProductExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public DirectMailGoodsProductExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getRows() {
        return this.rows;
    }

    public DirectMailGoodsProductExample limit(Integer rows) {
        this.rows = rows;
        return this;
    }

    public DirectMailGoodsProductExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.rows = rows;
        return this;
    }

    public DirectMailGoodsProductExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.rows = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDirectMailProductIdIsNull() {
            addCriterion("directmailgoodsproduct.DirectMailProductId is null");
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdIsNotNull() {
            addCriterion("directmailgoodsproduct.DirectMailProductId is not null");
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.DirectMailProductId =", value, "directMailProductId");
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.DirectMailProductId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdNotEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.DirectMailProductId <>", value, "directMailProductId");
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdNotEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.DirectMailProductId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdGreaterThan(Integer value) {
            addCriterion("directmailgoodsproduct.DirectMailProductId >", value, "directMailProductId");
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdGreaterThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.DirectMailProductId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.DirectMailProductId >=", value, "directMailProductId");
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdGreaterThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.DirectMailProductId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdLessThan(Integer value) {
            addCriterion("directmailgoodsproduct.DirectMailProductId <", value, "directMailProductId");
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdLessThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.DirectMailProductId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdLessThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.DirectMailProductId <=", value, "directMailProductId");
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdLessThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.DirectMailProductId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdIn(List<Integer> values) {
            addCriterion("directmailgoodsproduct.DirectMailProductId in", values, "directMailProductId");
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdNotIn(List<Integer> values) {
            addCriterion("directmailgoodsproduct.DirectMailProductId not in", values, "directMailProductId");
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsproduct.DirectMailProductId between", value1, value2, "directMailProductId");
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdNotBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsproduct.DirectMailProductId not between", value1, value2, "directMailProductId");
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdIsNull() {
            addCriterion("directmailgoodsproduct.DirectMailGoodsId is null");
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdIsNotNull() {
            addCriterion("directmailgoodsproduct.DirectMailGoodsId is not null");
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.DirectMailGoodsId =", value, "directMailGoodsId");
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.DirectMailGoodsId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdNotEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.DirectMailGoodsId <>", value, "directMailGoodsId");
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdNotEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.DirectMailGoodsId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdGreaterThan(Integer value) {
            addCriterion("directmailgoodsproduct.DirectMailGoodsId >", value, "directMailGoodsId");
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdGreaterThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.DirectMailGoodsId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.DirectMailGoodsId >=", value, "directMailGoodsId");
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdGreaterThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.DirectMailGoodsId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdLessThan(Integer value) {
            addCriterion("directmailgoodsproduct.DirectMailGoodsId <", value, "directMailGoodsId");
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdLessThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.DirectMailGoodsId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdLessThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.DirectMailGoodsId <=", value, "directMailGoodsId");
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdLessThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.DirectMailGoodsId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdIn(List<Integer> values) {
            addCriterion("directmailgoodsproduct.DirectMailGoodsId in", values, "directMailGoodsId");
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdNotIn(List<Integer> values) {
            addCriterion("directmailgoodsproduct.DirectMailGoodsId not in", values, "directMailGoodsId");
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsproduct.DirectMailGoodsId between", value1, value2, "directMailGoodsId");
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsproduct.DirectMailGoodsId not between", value1, value2, "directMailGoodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIsNull() {
            addCriterion("directmailgoodsproduct.GoodsId is null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIsNotNull() {
            addCriterion("directmailgoodsproduct.GoodsId is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.GoodsId =", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.GoodsId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.GoodsId <>", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.GoodsId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThan(Integer value) {
            addCriterion("directmailgoodsproduct.GoodsId >", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.GoodsId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.GoodsId >=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.GoodsId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThan(Integer value) {
            addCriterion("directmailgoodsproduct.GoodsId <", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.GoodsId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.GoodsId <=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.GoodsId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andGoodsIdIn(List<Integer> values) {
            addCriterion("directmailgoodsproduct.GoodsId in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotIn(List<Integer> values) {
            addCriterion("directmailgoodsproduct.GoodsId not in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsproduct.GoodsId between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsproduct.GoodsId not between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andProductIdIsNull() {
            addCriterion("directmailgoodsproduct.ProductId is null");
            return (Criteria) this;
        }

        public Criteria andProductIdIsNotNull() {
            addCriterion("directmailgoodsproduct.ProductId is not null");
            return (Criteria) this;
        }

        public Criteria andProductIdEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.ProductId =", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.ProductId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdNotEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.ProductId <>", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.ProductId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThan(Integer value) {
            addCriterion("directmailgoodsproduct.ProductId >", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.ProductId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.ProductId >=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.ProductId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdLessThan(Integer value) {
            addCriterion("directmailgoodsproduct.ProductId <", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.ProductId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdLessThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.ProductId <=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.ProductId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdIn(List<Integer> values) {
            addCriterion("directmailgoodsproduct.ProductId in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotIn(List<Integer> values) {
            addCriterion("directmailgoodsproduct.ProductId not in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsproduct.ProductId between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsproduct.ProductId not between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andSpecNamesIsNull() {
            addCriterion("directmailgoodsproduct.SpecNames is null");
            return (Criteria) this;
        }

        public Criteria andSpecNamesIsNotNull() {
            addCriterion("directmailgoodsproduct.SpecNames is not null");
            return (Criteria) this;
        }

        public Criteria andSpecNamesEqualTo(String value) {
            addCriterion("directmailgoodsproduct.SpecNames =", value, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.SpecNames = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecNamesNotEqualTo(String value) {
            addCriterion("directmailgoodsproduct.SpecNames <>", value, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesNotEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.SpecNames <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecNamesGreaterThan(String value) {
            addCriterion("directmailgoodsproduct.SpecNames >", value, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesGreaterThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.SpecNames > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecNamesGreaterThanOrEqualTo(String value) {
            addCriterion("directmailgoodsproduct.SpecNames >=", value, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesGreaterThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.SpecNames >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecNamesLessThan(String value) {
            addCriterion("directmailgoodsproduct.SpecNames <", value, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesLessThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.SpecNames < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecNamesLessThanOrEqualTo(String value) {
            addCriterion("directmailgoodsproduct.SpecNames <=", value, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesLessThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.SpecNames <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecNamesLike(String value) {
            addCriterion("directmailgoodsproduct.SpecNames like", value, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesNotLike(String value) {
            addCriterion("directmailgoodsproduct.SpecNames not like", value, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesIn(List<String> values) {
            addCriterion("directmailgoodsproduct.SpecNames in", values, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesNotIn(List<String> values) {
            addCriterion("directmailgoodsproduct.SpecNames not in", values, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesBetween(String value1, String value2) {
            addCriterion("directmailgoodsproduct.SpecNames between", value1, value2, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesNotBetween(String value1, String value2) {
            addCriterion("directmailgoodsproduct.SpecNames not between", value1, value2, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecSortingIsNull() {
            addCriterion("directmailgoodsproduct.SpecSorting is null");
            return (Criteria) this;
        }

        public Criteria andSpecSortingIsNotNull() {
            addCriterion("directmailgoodsproduct.SpecSorting is not null");
            return (Criteria) this;
        }

        public Criteria andSpecSortingEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.SpecSorting =", value, "specSorting");
            return (Criteria) this;
        }

        public Criteria andSpecSortingEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.SpecSorting = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecSortingNotEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.SpecSorting <>", value, "specSorting");
            return (Criteria) this;
        }

        public Criteria andSpecSortingNotEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.SpecSorting <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecSortingGreaterThan(Integer value) {
            addCriterion("directmailgoodsproduct.SpecSorting >", value, "specSorting");
            return (Criteria) this;
        }

        public Criteria andSpecSortingGreaterThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.SpecSorting > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecSortingGreaterThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.SpecSorting >=", value, "specSorting");
            return (Criteria) this;
        }

        public Criteria andSpecSortingGreaterThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.SpecSorting >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecSortingLessThan(Integer value) {
            addCriterion("directmailgoodsproduct.SpecSorting <", value, "specSorting");
            return (Criteria) this;
        }

        public Criteria andSpecSortingLessThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.SpecSorting < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecSortingLessThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.SpecSorting <=", value, "specSorting");
            return (Criteria) this;
        }

        public Criteria andSpecSortingLessThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.SpecSorting <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecSortingIn(List<Integer> values) {
            addCriterion("directmailgoodsproduct.SpecSorting in", values, "specSorting");
            return (Criteria) this;
        }

        public Criteria andSpecSortingNotIn(List<Integer> values) {
            addCriterion("directmailgoodsproduct.SpecSorting not in", values, "specSorting");
            return (Criteria) this;
        }

        public Criteria andSpecSortingBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsproduct.SpecSorting between", value1, value2, "specSorting");
            return (Criteria) this;
        }

        public Criteria andSpecSortingNotBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsproduct.SpecSorting not between", value1, value2, "specSorting");
            return (Criteria) this;
        }

        public Criteria andTaxRateIdIsNull() {
            addCriterion("directmailgoodsproduct.TaxRateId is null");
            return (Criteria) this;
        }

        public Criteria andTaxRateIdIsNotNull() {
            addCriterion("directmailgoodsproduct.TaxRateId is not null");
            return (Criteria) this;
        }

        public Criteria andTaxRateIdEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.TaxRateId =", value, "taxRateId");
            return (Criteria) this;
        }

        public Criteria andTaxRateIdEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.TaxRateId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxRateIdNotEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.TaxRateId <>", value, "taxRateId");
            return (Criteria) this;
        }

        public Criteria andTaxRateIdNotEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.TaxRateId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxRateIdGreaterThan(Integer value) {
            addCriterion("directmailgoodsproduct.TaxRateId >", value, "taxRateId");
            return (Criteria) this;
        }

        public Criteria andTaxRateIdGreaterThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.TaxRateId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxRateIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.TaxRateId >=", value, "taxRateId");
            return (Criteria) this;
        }

        public Criteria andTaxRateIdGreaterThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.TaxRateId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxRateIdLessThan(Integer value) {
            addCriterion("directmailgoodsproduct.TaxRateId <", value, "taxRateId");
            return (Criteria) this;
        }

        public Criteria andTaxRateIdLessThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.TaxRateId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxRateIdLessThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.TaxRateId <=", value, "taxRateId");
            return (Criteria) this;
        }

        public Criteria andTaxRateIdLessThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.TaxRateId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxRateIdIn(List<Integer> values) {
            addCriterion("directmailgoodsproduct.TaxRateId in", values, "taxRateId");
            return (Criteria) this;
        }

        public Criteria andTaxRateIdNotIn(List<Integer> values) {
            addCriterion("directmailgoodsproduct.TaxRateId not in", values, "taxRateId");
            return (Criteria) this;
        }

        public Criteria andTaxRateIdBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsproduct.TaxRateId between", value1, value2, "taxRateId");
            return (Criteria) this;
        }

        public Criteria andTaxRateIdNotBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsproduct.TaxRateId not between", value1, value2, "taxRateId");
            return (Criteria) this;
        }

        public Criteria andTaxRateIsNull() {
            addCriterion("directmailgoodsproduct.TaxRate is null");
            return (Criteria) this;
        }

        public Criteria andTaxRateIsNotNull() {
            addCriterion("directmailgoodsproduct.TaxRate is not null");
            return (Criteria) this;
        }

        public Criteria andTaxRateEqualTo(BigDecimal value) {
            addCriterion("directmailgoodsproduct.TaxRate =", value, "taxRate");
            return (Criteria) this;
        }

        public Criteria andTaxRateEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.TaxRate = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxRateNotEqualTo(BigDecimal value) {
            addCriterion("directmailgoodsproduct.TaxRate <>", value, "taxRate");
            return (Criteria) this;
        }

        public Criteria andTaxRateNotEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.TaxRate <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxRateGreaterThan(BigDecimal value) {
            addCriterion("directmailgoodsproduct.TaxRate >", value, "taxRate");
            return (Criteria) this;
        }

        public Criteria andTaxRateGreaterThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.TaxRate > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxRateGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("directmailgoodsproduct.TaxRate >=", value, "taxRate");
            return (Criteria) this;
        }

        public Criteria andTaxRateGreaterThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.TaxRate >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxRateLessThan(BigDecimal value) {
            addCriterion("directmailgoodsproduct.TaxRate <", value, "taxRate");
            return (Criteria) this;
        }

        public Criteria andTaxRateLessThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.TaxRate < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxRateLessThanOrEqualTo(BigDecimal value) {
            addCriterion("directmailgoodsproduct.TaxRate <=", value, "taxRate");
            return (Criteria) this;
        }

        public Criteria andTaxRateLessThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.TaxRate <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTaxRateIn(List<BigDecimal> values) {
            addCriterion("directmailgoodsproduct.TaxRate in", values, "taxRate");
            return (Criteria) this;
        }

        public Criteria andTaxRateNotIn(List<BigDecimal> values) {
            addCriterion("directmailgoodsproduct.TaxRate not in", values, "taxRate");
            return (Criteria) this;
        }

        public Criteria andTaxRateBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("directmailgoodsproduct.TaxRate between", value1, value2, "taxRate");
            return (Criteria) this;
        }

        public Criteria andTaxRateNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("directmailgoodsproduct.TaxRate not between", value1, value2, "taxRate");
            return (Criteria) this;
        }

        public Criteria andCustomNameIsNull() {
            addCriterion("directmailgoodsproduct.CustomName is null");
            return (Criteria) this;
        }

        public Criteria andCustomNameIsNotNull() {
            addCriterion("directmailgoodsproduct.CustomName is not null");
            return (Criteria) this;
        }

        public Criteria andCustomNameEqualTo(String value) {
            addCriterion("directmailgoodsproduct.CustomName =", value, "customName");
            return (Criteria) this;
        }

        public Criteria andCustomNameEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.CustomName = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCustomNameNotEqualTo(String value) {
            addCriterion("directmailgoodsproduct.CustomName <>", value, "customName");
            return (Criteria) this;
        }

        public Criteria andCustomNameNotEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.CustomName <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCustomNameGreaterThan(String value) {
            addCriterion("directmailgoodsproduct.CustomName >", value, "customName");
            return (Criteria) this;
        }

        public Criteria andCustomNameGreaterThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.CustomName > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCustomNameGreaterThanOrEqualTo(String value) {
            addCriterion("directmailgoodsproduct.CustomName >=", value, "customName");
            return (Criteria) this;
        }

        public Criteria andCustomNameGreaterThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.CustomName >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCustomNameLessThan(String value) {
            addCriterion("directmailgoodsproduct.CustomName <", value, "customName");
            return (Criteria) this;
        }

        public Criteria andCustomNameLessThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.CustomName < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCustomNameLessThanOrEqualTo(String value) {
            addCriterion("directmailgoodsproduct.CustomName <=", value, "customName");
            return (Criteria) this;
        }

        public Criteria andCustomNameLessThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.CustomName <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCustomNameLike(String value) {
            addCriterion("directmailgoodsproduct.CustomName like", value, "customName");
            return (Criteria) this;
        }

        public Criteria andCustomNameNotLike(String value) {
            addCriterion("directmailgoodsproduct.CustomName not like", value, "customName");
            return (Criteria) this;
        }

        public Criteria andCustomNameIn(List<String> values) {
            addCriterion("directmailgoodsproduct.CustomName in", values, "customName");
            return (Criteria) this;
        }

        public Criteria andCustomNameNotIn(List<String> values) {
            addCriterion("directmailgoodsproduct.CustomName not in", values, "customName");
            return (Criteria) this;
        }

        public Criteria andCustomNameBetween(String value1, String value2) {
            addCriterion("directmailgoodsproduct.CustomName between", value1, value2, "customName");
            return (Criteria) this;
        }

        public Criteria andCustomNameNotBetween(String value1, String value2) {
            addCriterion("directmailgoodsproduct.CustomName not between", value1, value2, "customName");
            return (Criteria) this;
        }

        public Criteria andCounterPriceIsNull() {
            addCriterion("directmailgoodsproduct.CounterPrice is null");
            return (Criteria) this;
        }

        public Criteria andCounterPriceIsNotNull() {
            addCriterion("directmailgoodsproduct.CounterPrice is not null");
            return (Criteria) this;
        }

        public Criteria andCounterPriceEqualTo(BigDecimal value) {
            addCriterion("directmailgoodsproduct.CounterPrice =", value, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andCounterPriceEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.CounterPrice = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCounterPriceNotEqualTo(BigDecimal value) {
            addCriterion("directmailgoodsproduct.CounterPrice <>", value, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andCounterPriceNotEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.CounterPrice <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCounterPriceGreaterThan(BigDecimal value) {
            addCriterion("directmailgoodsproduct.CounterPrice >", value, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andCounterPriceGreaterThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.CounterPrice > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCounterPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("directmailgoodsproduct.CounterPrice >=", value, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andCounterPriceGreaterThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.CounterPrice >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCounterPriceLessThan(BigDecimal value) {
            addCriterion("directmailgoodsproduct.CounterPrice <", value, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andCounterPriceLessThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.CounterPrice < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCounterPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("directmailgoodsproduct.CounterPrice <=", value, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andCounterPriceLessThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.CounterPrice <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCounterPriceIn(List<BigDecimal> values) {
            addCriterion("directmailgoodsproduct.CounterPrice in", values, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andCounterPriceNotIn(List<BigDecimal> values) {
            addCriterion("directmailgoodsproduct.CounterPrice not in", values, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andCounterPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("directmailgoodsproduct.CounterPrice between", value1, value2, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andCounterPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("directmailgoodsproduct.CounterPrice not between", value1, value2, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceIsNull() {
            addCriterion("directmailgoodsproduct.RetailPrice is null");
            return (Criteria) this;
        }

        public Criteria andRetailPriceIsNotNull() {
            addCriterion("directmailgoodsproduct.RetailPrice is not null");
            return (Criteria) this;
        }

        public Criteria andRetailPriceEqualTo(BigDecimal value) {
            addCriterion("directmailgoodsproduct.RetailPrice =", value, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.RetailPrice = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRetailPriceNotEqualTo(BigDecimal value) {
            addCriterion("directmailgoodsproduct.RetailPrice <>", value, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceNotEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.RetailPrice <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRetailPriceGreaterThan(BigDecimal value) {
            addCriterion("directmailgoodsproduct.RetailPrice >", value, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceGreaterThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.RetailPrice > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRetailPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("directmailgoodsproduct.RetailPrice >=", value, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceGreaterThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.RetailPrice >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRetailPriceLessThan(BigDecimal value) {
            addCriterion("directmailgoodsproduct.RetailPrice <", value, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceLessThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.RetailPrice < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRetailPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("directmailgoodsproduct.RetailPrice <=", value, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceLessThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.RetailPrice <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRetailPriceIn(List<BigDecimal> values) {
            addCriterion("directmailgoodsproduct.RetailPrice in", values, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceNotIn(List<BigDecimal> values) {
            addCriterion("directmailgoodsproduct.RetailPrice not in", values, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("directmailgoodsproduct.RetailPrice between", value1, value2, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("directmailgoodsproduct.RetailPrice not between", value1, value2, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andStockNumberIsNull() {
            addCriterion("directmailgoodsproduct.StockNumber is null");
            return (Criteria) this;
        }

        public Criteria andStockNumberIsNotNull() {
            addCriterion("directmailgoodsproduct.StockNumber is not null");
            return (Criteria) this;
        }

        public Criteria andStockNumberEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.StockNumber =", value, "stockNumber");
            return (Criteria) this;
        }

        public Criteria andStockNumberEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.StockNumber = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStockNumberNotEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.StockNumber <>", value, "stockNumber");
            return (Criteria) this;
        }

        public Criteria andStockNumberNotEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.StockNumber <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStockNumberGreaterThan(Integer value) {
            addCriterion("directmailgoodsproduct.StockNumber >", value, "stockNumber");
            return (Criteria) this;
        }

        public Criteria andStockNumberGreaterThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.StockNumber > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStockNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.StockNumber >=", value, "stockNumber");
            return (Criteria) this;
        }

        public Criteria andStockNumberGreaterThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.StockNumber >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStockNumberLessThan(Integer value) {
            addCriterion("directmailgoodsproduct.StockNumber <", value, "stockNumber");
            return (Criteria) this;
        }

        public Criteria andStockNumberLessThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.StockNumber < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStockNumberLessThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.StockNumber <=", value, "stockNumber");
            return (Criteria) this;
        }

        public Criteria andStockNumberLessThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.StockNumber <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStockNumberIn(List<Integer> values) {
            addCriterion("directmailgoodsproduct.StockNumber in", values, "stockNumber");
            return (Criteria) this;
        }

        public Criteria andStockNumberNotIn(List<Integer> values) {
            addCriterion("directmailgoodsproduct.StockNumber not in", values, "stockNumber");
            return (Criteria) this;
        }

        public Criteria andStockNumberBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsproduct.StockNumber between", value1, value2, "stockNumber");
            return (Criteria) this;
        }

        public Criteria andStockNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsproduct.StockNumber not between", value1, value2, "stockNumber");
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberIsNull() {
            addCriterion("directmailgoodsproduct.UsedStockNumber is null");
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberIsNotNull() {
            addCriterion("directmailgoodsproduct.UsedStockNumber is not null");
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.UsedStockNumber =", value, "usedStockNumber");
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.UsedStockNumber = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberNotEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.UsedStockNumber <>", value, "usedStockNumber");
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberNotEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.UsedStockNumber <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberGreaterThan(Integer value) {
            addCriterion("directmailgoodsproduct.UsedStockNumber >", value, "usedStockNumber");
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberGreaterThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.UsedStockNumber > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.UsedStockNumber >=", value, "usedStockNumber");
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberGreaterThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.UsedStockNumber >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberLessThan(Integer value) {
            addCriterion("directmailgoodsproduct.UsedStockNumber <", value, "usedStockNumber");
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberLessThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.UsedStockNumber < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberLessThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.UsedStockNumber <=", value, "usedStockNumber");
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberLessThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.UsedStockNumber <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberIn(List<Integer> values) {
            addCriterion("directmailgoodsproduct.UsedStockNumber in", values, "usedStockNumber");
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberNotIn(List<Integer> values) {
            addCriterion("directmailgoodsproduct.UsedStockNumber not in", values, "usedStockNumber");
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsproduct.UsedStockNumber between", value1, value2, "usedStockNumber");
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsproduct.UsedStockNumber not between", value1, value2, "usedStockNumber");
            return (Criteria) this;
        }

        public Criteria andSoldNumberIsNull() {
            addCriterion("directmailgoodsproduct.SoldNumber is null");
            return (Criteria) this;
        }

        public Criteria andSoldNumberIsNotNull() {
            addCriterion("directmailgoodsproduct.SoldNumber is not null");
            return (Criteria) this;
        }

        public Criteria andSoldNumberEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.SoldNumber =", value, "soldNumber");
            return (Criteria) this;
        }

        public Criteria andSoldNumberEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.SoldNumber = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSoldNumberNotEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.SoldNumber <>", value, "soldNumber");
            return (Criteria) this;
        }

        public Criteria andSoldNumberNotEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.SoldNumber <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSoldNumberGreaterThan(Integer value) {
            addCriterion("directmailgoodsproduct.SoldNumber >", value, "soldNumber");
            return (Criteria) this;
        }

        public Criteria andSoldNumberGreaterThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.SoldNumber > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSoldNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.SoldNumber >=", value, "soldNumber");
            return (Criteria) this;
        }

        public Criteria andSoldNumberGreaterThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.SoldNumber >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSoldNumberLessThan(Integer value) {
            addCriterion("directmailgoodsproduct.SoldNumber <", value, "soldNumber");
            return (Criteria) this;
        }

        public Criteria andSoldNumberLessThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.SoldNumber < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSoldNumberLessThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.SoldNumber <=", value, "soldNumber");
            return (Criteria) this;
        }

        public Criteria andSoldNumberLessThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.SoldNumber <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSoldNumberIn(List<Integer> values) {
            addCriterion("directmailgoodsproduct.SoldNumber in", values, "soldNumber");
            return (Criteria) this;
        }

        public Criteria andSoldNumberNotIn(List<Integer> values) {
            addCriterion("directmailgoodsproduct.SoldNumber not in", values, "soldNumber");
            return (Criteria) this;
        }

        public Criteria andSoldNumberBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsproduct.SoldNumber between", value1, value2, "soldNumber");
            return (Criteria) this;
        }

        public Criteria andSoldNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsproduct.SoldNumber not between", value1, value2, "soldNumber");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("directmailgoodsproduct.`Status` is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("directmailgoodsproduct.`Status` is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.`Status` =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.`Status` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.`Status` <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.`Status` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("directmailgoodsproduct.`Status` >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.`Status` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.`Status` >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.`Status` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("directmailgoodsproduct.`Status` <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.`Status` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsproduct.`Status` <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.`Status` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("directmailgoodsproduct.`Status` in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("directmailgoodsproduct.`Status` not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsproduct.`Status` between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsproduct.`Status` not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("directmailgoodsproduct.Deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("directmailgoodsproduct.Deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("directmailgoodsproduct.Deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.Deleted = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("directmailgoodsproduct.Deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.Deleted <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("directmailgoodsproduct.Deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.Deleted > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("directmailgoodsproduct.Deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.Deleted >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("directmailgoodsproduct.Deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.Deleted < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("directmailgoodsproduct.Deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.Deleted <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("directmailgoodsproduct.Deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("directmailgoodsproduct.Deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("directmailgoodsproduct.Deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("directmailgoodsproduct.Deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("directmailgoodsproduct.`CreateUser` is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("directmailgoodsproduct.`CreateUser` is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("directmailgoodsproduct.`CreateUser` =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.`CreateUser` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("directmailgoodsproduct.`CreateUser` <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.`CreateUser` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("directmailgoodsproduct.`CreateUser` >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.`CreateUser` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("directmailgoodsproduct.`CreateUser` >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.`CreateUser` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("directmailgoodsproduct.`CreateUser` <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.`CreateUser` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("directmailgoodsproduct.`CreateUser` <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.`CreateUser` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("directmailgoodsproduct.`CreateUser` like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("directmailgoodsproduct.`CreateUser` not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("directmailgoodsproduct.`CreateUser` in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("directmailgoodsproduct.`CreateUser` not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("directmailgoodsproduct.`CreateUser` between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("directmailgoodsproduct.`CreateUser` not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("directmailgoodsproduct.CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("directmailgoodsproduct.CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("directmailgoodsproduct.CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.CreateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("directmailgoodsproduct.CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.CreateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("directmailgoodsproduct.CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.CreateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("directmailgoodsproduct.CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.CreateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("directmailgoodsproduct.CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.CreateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("directmailgoodsproduct.CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.CreateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("directmailgoodsproduct.CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("directmailgoodsproduct.CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("directmailgoodsproduct.CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("directmailgoodsproduct.CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNull() {
            addCriterion("directmailgoodsproduct.UpdateUser is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNotNull() {
            addCriterion("directmailgoodsproduct.UpdateUser is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualTo(String value) {
            addCriterion("directmailgoodsproduct.UpdateUser =", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.UpdateUser = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualTo(String value) {
            addCriterion("directmailgoodsproduct.UpdateUser <>", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.UpdateUser <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThan(String value) {
            addCriterion("directmailgoodsproduct.UpdateUser >", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.UpdateUser > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualTo(String value) {
            addCriterion("directmailgoodsproduct.UpdateUser >=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.UpdateUser >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThan(String value) {
            addCriterion("directmailgoodsproduct.UpdateUser <", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.UpdateUser < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualTo(String value) {
            addCriterion("directmailgoodsproduct.UpdateUser <=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.UpdateUser <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLike(String value) {
            addCriterion("directmailgoodsproduct.UpdateUser like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotLike(String value) {
            addCriterion("directmailgoodsproduct.UpdateUser not like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIn(List<String> values) {
            addCriterion("directmailgoodsproduct.UpdateUser in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotIn(List<String> values) {
            addCriterion("directmailgoodsproduct.UpdateUser not in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserBetween(String value1, String value2) {
            addCriterion("directmailgoodsproduct.UpdateUser between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotBetween(String value1, String value2) {
            addCriterion("directmailgoodsproduct.UpdateUser not between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("directmailgoodsproduct.UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("directmailgoodsproduct.UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("directmailgoodsproduct.UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.UpdateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("directmailgoodsproduct.UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.UpdateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("directmailgoodsproduct.UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.UpdateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("directmailgoodsproduct.UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.UpdateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("directmailgoodsproduct.UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.UpdateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("directmailgoodsproduct.UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualToColumn(DirectMailGoodsProduct.Column column) {
            addCriterion(new StringBuilder("directmailgoodsproduct.UpdateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("directmailgoodsproduct.UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("directmailgoodsproduct.UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("directmailgoodsproduct.UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("directmailgoodsproduct.UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private DirectMailGoodsProductExample example;

        protected Criteria(DirectMailGoodsProductExample example) {
            super();
            this.example = example;
        }

        public DirectMailGoodsProductExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        public Criteria andLogicalDeleted(boolean deleted) {
            return deleted ? andDeletedEqualTo(DirectMailGoodsProduct.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(DirectMailGoodsProduct.Deleted.IS_DELETED.value());
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsProductExample example);
    }
}